import logging
import os
import pytest
import requests
from log import caiji_log
from mail import send_mail
if __name__ == '__main__':
    caiji_log()
    pytest.main(["-s","test_case.py","--alluredir=./报告数据","--clean-alluredir"])
    os.system("allure generate ./报告数据 -o ./测试报告 --clean")
    send_mail(["bbb.log",'./测试报告/index.html'])

